package com.tourism.website.articlepersonal.service;

import com.tourism.website.articlepersonal.entity.Article;
import com.baomidou.mybatisplus.extension.service.IService;
import com.tourismwebsite.articledisplay.dto.ArticleCategoryDTO;
import com.tourismwebsite.articlemanage.dto.ArticleManageDTO;
import com.tourismwebsite.articlepersonal.dto.ArticlePersonalDTO;
import com.tourismwebsite.articlepersonal.query.ArticlePersonalQuery;
import com.tourismwebsite.vo.JsonVO;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author kevin
 * @since 2024-06-13
 */
public interface IArticleService extends IService<Article> {
    //查询文章内容
    List<ArticlePersonalDTO> queryArticlePersonal(String username);
    //文章删除（支持批量）
    Boolean deleteArticleManage(Integer articleId);
    //查询文章的名字和发布的时间
    List<ArticlePersonalDTO> queryNameAndTime(Integer articleId);
    //发表文章
    boolean saveArticle(ArticlePersonalQuery articlePersonalQuery,Integer categoryId);

    List<ArticleCategoryDTO> getArticlesByUserIdAndCategoryId(Integer userId, Integer categoryId);
}
